import React from 'react'
import { Switch, Route } from "react-router-dom"

import MyNavBar from './MyNavBar'
import Cards from './MyCards'
import MyList from './MyList'
import Records from './records/Records'
import Members from './members/Members'
import AddMember from './addMember/addMember'
import Page404 from "../page404/Page404"
import Monitoring from "./monitoring/Index"
import Sigin from './sigin/Sigin'

export default function My() {
    
    return (
        <>
            <Switch>
                <Route path="/My/record">
                    null
                </Route>
                <Route path="/My/member">
                    <Members></Members>
                </Route>
                <Route path="/My/healthText">
                    <Records></Records>
                </Route>
                <Route path="/My/monitoring">
                    <Monitoring></Monitoring>
                </Route>
                <Route path="/My/doctorsTeam">
                    null
                </Route>
                <Route path="/My/serve">
                    null
                </Route>
                <Route path="/My/collection">
                    null
                </Route>
                <Route path="/My/sigin">
                    <Sigin></Sigin>
                </Route>
                <Route path="/My/addMember">
                    <AddMember></AddMember>
                </Route>
                <Route path="/404">
                    <Page404></Page404>
                </Route>
                <Route path="/My">
                    <MyNavBar></MyNavBar>
                    <Cards></Cards>
                    <MyList></MyList>
                </Route>
            </Switch>

        </>
    )
}
